execute plugin from javascript