Introduced onhashchange event. Fixes #6