Fixed the XSS issues when getting the JSON data from the Gmaps API by moving to the geocode javascript function inside the API V3