Apparently if you put two js script at top and bottom of the page (jquery and bootstrap) links on the nav bar don't work. So reverting to top page loading of the javascript.