Rearranging the node-app.js file