Update to FIF technique that handles document.domain changes