simlified app.js
simlified app.js