Update geolocation.js

Corrected error constants used to determine error type