Poyfill for window.location.origin