Wrapped the plugin inside a function to properly bind $
Merge pull request #2 from lavoiesl/master

Wrapped the plugin inside a function to properly bind $