Create sequential programming for node.js