Update navigate.debug.js

Replaced $ with jQuery
Error string quote marks consistent
Renamed 'i' to 'index'