creating map.js file