Control flow for Node.js