Instead of `self = this`, please just add `.bind(this)` to the definition of the callback.