Converted the editor's frontend code from CoffeeScript to JavaScript