fix html5 history support by implementing window.popstate