translated SamplePlugin.js