I\'m trying to wrap my head around closures (there\'s a joke in there somewhere) and I ran across this:
(function () { /* do cool stuff */ })();
One closures approach is to pass variables to the function:
(function($, var_1, var_2) { // use JQuery, var_1 and var_2 as local variables })($, var_1, var_2);