added node.js middleware to ease development