googlemap.js refactoring