checks for window.history.location to support IE8