changes js to change window.location