Update wait-for-multiple-promises.js

There is no need to return promise explicitly from 'two' function and Q.allResolved is deprecated, we can use allSettled or all instead.
Closes #1. Merge branch 'pulakb-master'