Add document.window to method signature