Unwanted globals can sneak into your JS codebase quite quickly, all you need to do is forget that pesky `var`. That can off course introduce all sorts of trouble to your code base. If you’re lucky you’ll just be a bit embarrassed when your co-worker finds the global. But if you’re unlucky, that global can cause all sorts of bugs through your code base.
You can find&fork the code here on GitHub. Everything you need to know is included in the readme file, and since it’s MIT licensed feel free to do with the code as you please.