Compatibility fix for jquery 1.8.3.

Using this in a project with jQuery 1.8.3. The previous code, rather than executing was simply dumping the function into the className of $wrapper.
I fixed this, but I totally don't know coffee so I can only push a final-output set of code.

Cheers