Pass window and document as arguments to outer immediately-invoked function expression.