You can probably use `Array.prototype.indexOf` to avoid having two loops. Something like this:

```
if (types) {
  var i, len = types.length;
  for (i = 0; i < len; ++i) {
    if (['files', 'text/plain'].indexOf(types[i].toLowerCase()) > 0) {
      dropZone.css('display', 'table');
      break;
    }
  }
}
```

(untested)