Detects location.hash changes and scrolls to the element with the corresponding id. Customizable scroll behavior.