[FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData) is a property of the DOM.  If you prefer you could replace that line with:
```
formData = new window.FormData();
```