Fixed onhashchange event dispatcher on IE8