CoffeeScript functions