Changed map.js to main.js