Update the JS binding of plugin.