window.history wrapper