Start of new way of text editor - added JS