Some examples of using promises in Node.js