Added 5 second timeout for geolocation.getCurrentPosition.