Create q-promises.js