added the resize function to the nav js back in to watch for the window resize to keep the divs in check