Wrapped the plugin inside a function to properly bind $