Fix travis-ci failure (work around lack of .bind)

phantomjs does not have Function.prototype.bind