Most of the way through the app, the method on can't be called on undefined.