location.js: provide an error handler

Provide an error handler for the geolocation API, otherwise on at least
some devices it won't work at all.
Merge pull request #2 from dwfreed/fix-location

Provide an error handler to geolocation lookup