Examples of using promises from CoffeeScript