Minor thing here, put the `matches` variable bellow like so:
```js
var matches;
```