Port generator itself to CoffeeScript