Wrap the plugin method in a closure.

Protects $ alias, prevent missing semi-colons breaking the plugin.
Use AMD if available.
Merge pull request #2 from gocom/noconflict

Wrap the plugin method in a closure