Update to js window.location version