Fixing document.domain issues.