title: What is the sanest way to use global variables in Javascript?
body: <p>What is the best way to use global variables in Javascript?</p>
  
  <p>Should I do <code>document.x="this"</code>, <code>document.y="that"</code>?</p>
  
  <p>How will I avoid collisions in the long run?</p>