`browser` seems not used, you can either remove it or modifying the next line to something like:
```js
let win = browser.ownerDocument.defaultView;
```