ngAutocomplete to coffeescript