Have links change the URL and let onhashchange do the rest