adding changes to aap.js and index.html