JS code comment formatting

- Removes unneeded jshint ignore directive.
- Removes unused event parameters from event handlers.
- Moves geolocation error text to a constant.
- Adds `validThis` jshint directive for function that uses this
correctly in a strict context.