I would try to stay away from pre-defined global variables like 'window' to be used as your own variables.