loading navbar.js now dynamic