IE bowser check: window.location.origin is not a defined attribute (replaced with window.location.protocol + "//" + window.location.host)