update app.js and restructed project structure