Shim for ie to have window.location.origin