JSOM Initiate SharePoint workflow

You can initiate a SharePoint workflow with the following javascript code;
Parameters can be used send parameter into SharePoint workflow.

CODE