title: How to create an alias for 'window'?
body: <p>I'm writing a javascript app that uses a lot of global variables:</p>
  
  <pre><code>window.x = 0;
  window.y = 0;
  </code></pre>
  
  <p>I'd like to be able to use an alias for the window object:</p>
  
  <pre><code>w = window;
  w.x = 0;
  w.y = 0;
  </code></pre>
  
  <p>However, when I set w to window, it seems to recursively add itself to the DOM:</p>
  
  <pre><code>w = window;
  // In the DOM Explorer:
  &gt; w   page.html
  &gt;   w   page.html
  &gt;     w   page.html...
  </code></pre>
  
  <p>This seems like it would ruin the memory, but the app is running fine. Is there a better way to create global variables or a window alias?</p>