back to PhantomJS. issue with TypeError: 'undefined' is not a function (evaluating 'this.login.bind(this)')