This is ok, but in general we've been migrating from local variables like this one to function binding, i.e. 

```
      onBadContentType: (function() {
        this.debug("incorrect content-type");
        this._displayNotification("App not updated (not found)");
      }).bind(this),
```

Which also gives you *this.debug* without having to define *debug*.