fix typo in `window.location.origin` polyfill