jshint corrections and documentation for navigator.js