Async waterfall example in javascript