restructured framework for node.js backend