Add IE support for window.location.origin

Add IE support for window.location.origin