move map from index.html to map.js