Update the JS binding code of plugin.
Merge pull request #3315 from natural-law/develop

Update the JS binding code of plugin.