A simple JavaScript Text Editor