an example to solve to loop problem in async waterfall. This code tells you how to code async.map inside async.waterfall