Create a new connect middleware function from multiple other middleware functions (node.js)