Added window.location.origin if !exist
Merge pull request #15 from Fiyery/BugFixJSIE

Added window.location.origin if !exist