@redconfetti not a blocker, but can't you write this `if` and the following `if` like this

```javascript
if (window.ENV && window.ENV.COURSE_ROOT_URL) {
```

Even shorter would be:
```javascript
var isViewingCoursePeople = window.ENV &&
 window.ENV.COURSE_ROOT_URL &&
 window.location.pathname === window.ENV.COURSE_ROOT_URL + '/users';
```