Extracted google map javascript into global