initial setup for navigator.geolocation