patch IE location.origin