refactored googlemaps.js