Unless I’m misreading your scripts you don’t seem to have a script in place to do that.
You have a script for parallax scrolling and a script to style the scrollbar. Where’s the script for the in page links? Or is it included in one of the above scripts?