This whole block could be expressed more elegantly, maybe

```coffeescript
list = []

for i in results.concat $.trim data
  capitalized = i.charAt(0).toUpperCase() + i.substr(1)
  list.push capitalized if list.indexOf(capitalized) is -1

response list
```