Update latexeditor.js

CodeCleanup