Change to

```JavaScript
var messages = [];
```