Update navigate.debug.js

Provided code comments for clarity
Tidied up some obvious inconsistencies