Refactored Google maps integration to work with requireJS