This method should be on the application object. You can do that like this (assuming you're in app.js):

    app.flashTitle = function(pageTitle, newMessageTitle) { ... };

And then you'll call it from the callbacks with this.flashTitle. You'll have to be careful about what `this` is referencing, though. Look into `_.bind` (which you'll see me use all over the place) to learn about keeping track of that.