Update window.location.hash after animation has stopped.

This prevents browser from taking over scrolling. Gets the new hash from
the target element's ID attribute for now.