switching from 'when.js' to 'Q'