Geolocation waits for device to be ready

Adds event listener to wait for the device to be ready before watching
for position.