Add `document` and `window` to global objects