Preparing class to browser geolocation