add location to window.