Got the editor working using library
Completed all javascript now documenting scarlet