CoffeeScript implementation