Modularization of Node.js app