What are your techniques for discovering unwanted global variables in javascript
<p>Since global variables in javascript are anything but best practice, I'd like to discover any unintentional global variables in javascript...just noticed one in a method I'm currently working on. So my question is...</p>

<p>What techniques, other than a careful reading of code, do you use to discover unwanted global variables? </p>

<p>Are there any tools available for this purpose?</p>

<p>Found this page, <a href="http://remysharp.com/2007/11/01/detect-global-variables/" rel="nofollow">Remy Sharp's bookmarklet for detecting global vars,</a> on a quick google search, but I'm wondering if there are others?</p>
