initial node.js implementation of middleware
implement basic foodrun in node