Add IE support for window.location.origin

Add IE support for window.location.origin
Add code comment for window.location.origin pollyfill, also fix JShint fail double -> single quotes