A node.js flow controller