Add 'contains' method to avoid 'indexOf'.

'contains(things, thing)' is more readable than 'thing.indexOf(thing) != -1'