Delete unused code in map.js