Should this check for the existence of `window.history` before calling it? IE9 does not implement the history API: http://caniuse.com/#search=history