Fixes the callback is undefined errors when running this plugin.
Merge pull request #1 from mike-roberts/master

Fixes the callback is undefined errors when running this plugin.