window.location.origin is webkit only