Replace this line with:
```js
setStateFor(button, window, { checked: isChecked });
```