localhost to window.location.origin