Update app.js

Changes for dynamic data loading of carousel..