Message processing middleware, for Node.js/JavaScript