Using Plugins with Java Script

The approach is the same as described here.