Fixed Navbar JS / DRY'd it up