elsif and else if; convert to coffeescript