window.location is no longer constant, as according to the specification it can be set. See http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#the-location-interface.