nit: else on same line as `}`, like: 

```js
} else {
```

thanks :)