[fix] refactored main.js to map.js