put main.js code directly in gmaps.js
code cleanup