Avoid exposing too much local variables to the window object.