Update the JS binding for plugin.