When I first ran the quickstart I was also confused why my map was grey, but I just realised I'd forgotten to retrieve an API access code (in my case, it was for Mapbox's service.)
Your URL line references API_KEY but you don't seem to be declaring it.