An alternative approach to tackling callback hell in node.js