Bugfix to geolocation - introduced success and error callbacks with timeout.