correct var name in nav.js