you should use

```js
files.forEach(function (file) {
    ...
});
```