using jsplugin framework