Added immediate function scope to the definitions.

Enables the plug in to be called with $.noConflict().