updated apps.js and index.html files