debug no location.origin