jgallen23/toc — pull request #9 by gfranko (2012-04-24 14:56:26+00:00)
Title: Immediately-Invoked Function Expression, locally pass in the windows object, remove unnecessary vars, and updated Demo

##Immediately-Invoked Function Expression
Wrapped the plugin in an **Immediately-Invoked Function Expression** (_best practice_)

##Windows Object
Locally passed in the `windows` object to be minifier friendly.

##Unnecessary var statements
Unnecessary `var` statements were also removed, since you only need to declare `var` for the first variable declaration.

##Example Demo

The example demo was also updated to more reflect the demo on the project homepage.