rewrite JS from mapbox 0.6.7 to mapbox 1.5.2/leaflet0.7.1