s/localhost/location.origin/