triangle in coffeescript