Update the JS binding code of plugin.