IE8 fixes

Fixed the fallback hashchange-based browser history functionality in
IE8.