Refactoring js plugins.
End step 3
InputEditor2 refactoring