Refactoring in MapHosterGoogle.js now working.
ArcGIS now working after refactoring.