Switched to strict mode and JSHint'ed the plugin