IE10 does not have window.location.origin

So we are polyfilling it so that URL updates work as expected.