change ./search to /search in nav.js