more javascript tweaks to nav bar