Initial JS Text Editor code