Queue based processing for node.js