Using CoffeeScript with closures