add window.popstate checks for IE7 backwards compat