Had to load Mapbox javascript before main.js.