Using Plugins with Java Script

The approach is the same as describedĀ here.