add global window document