refactored
refactored app.js