added a callback to the scrolling function so we can add the hash in the window.location