pipe function behave like jQuery: wait for returned deferred.