updated the ternary form in the coffeescript