add window.document.