v0.6.43 add window.location.origin polyfill