I'd like to get a help to implementing a middleware call like ConnectJS, i made a simple npm module (https://www.npmjs.org/package/meroboto), that have a stack to call many pushed functions. I started to read sources from ConnectJS to understand how to make a simple middleware system with "callbacks" and "nexts", but became very confusing due my low experince with Javascript patterns, can someone help with a example of a simple middleware example.