Plugins native error: Object(...) is not a function