Support for hashchange event for recent browsers

When the browser supports it, a change to the hash in the address bar now properly updates the screen.