breakout node.js app into multi files and cleanup code