Refactored app.js into modules(io.js and liveVideoServer.js) for cleaner code and logic separation