Refactoring of the JavaScript for GeoLocator, it is now a real object.