Removed useless code from map.js