How to use the DarkSky API with JavaScript