added js to nav-bar