Update JS binding for plugin

1. Update JS binding tools
2. Add sample code for using plugin by JS script