Update snippeteditor.js