Adding async tasks with when.js