adds conditional to check if browser supports geolocation