unsafeWindow renamed to document.defaultView