A simple text editor in CoffeeScript and node.js