fixed a bug in the nav bar when scrolling up and down making sure the active class is added correctly as well as some reformatting js/css/html.