SOC-3994: [IE] window.location.origin return undefined on IE

Fix description:
	- Do not use window.location.origin from webkit, use global one instead