Update texteditor.js