Jobs with flow control for node.js