I think that you want to use it instead

```js
filename: DownloadFormatter.getFileName(params.download),
```