Added ability to detect if geolocation is supported