Please use the modern way of passing args to the `evaluate` function as well as standard inline formatting:

```js
return this.waitFor(function() {
  return this.evaluate(function(pageTitle) {
      return document.title === pageTitle;
  }, title);
}, then, onTimeout, timeout);
```

As a side note, you may want to add a `__utils__#getTitle` method so you would just write something like:

```js
Casper.prototype.waitForTitle = function(title, then, onTimeout, timeout){
    "use strict";
    return this.waitFor(function() {
        return this.callUtils("getTitle", title);
    }, then, onTimeout, timeout);
};
```