cleaned up google maps code and moved it to external js file