Takes care of JS errors if people try to scroll past the end of the page.