CoffeeScript impl