fixed Mapbox resolution/old javascript