This is equivalent, please change back.

```js
var modes = capabilities.whiteBalanceModes;
```