removing unnnecessary code in the maps.js file