Streamlined jQuery code to make navbar fade in and out along with scrolling