ie 9 doesn't support location.origin, missed one instance