Functional Javascript examples in Coffeescript