use pattern matching like syntax in CoffeeScript