Fix issue where you couldn't add window, document and certain elements directly