Update navigate.debug.js

Protecting the $ alias and adding scope