window.location.origin IE fix