There's a reason I appended `&& window.onpopstate` here. This broke IE<=7