code: function(text){
              var deferred = Q.defer();
              r.question(text, function(answer) {
                  deferred.resolve(answer);
              });
              return deferred.promise;
          }
docs: transfer the question funtion to a promised function