Added polyfill for geolocation in old browsers