fixed typo in navigator.js for the navigator object