trying to get the right dropdown behavior via coffeescript