Changes js document.location.domain to document.domain.