removed window.location.href