translated editor.js to coffeescript - first pass (non-OO notation)
rebuild and docs