folding for coffeescript