Create map.js

moved js for locations.html to map.js