Moved smooth scrolling script to run after window loads to fix incorrect scrolling bug.