javascript array map async await