Made lib/Promises.js and an exports output script