This is not necessarily true. Plugins may have JavaScript, native code or both. The text here should make that clear and state that this example shows how to invoke native functionality from JavaScript.