cleaning up maps.js code