added support for js plugins