nit: we prefer dot notation, and JSHint will require it when we turn it on for this file, I think the following should work:

```
if (window.LockScreen && LockScreen.locked) {
```