switch over to coffeescript

create an editorClass