index.html & app.js new functions 2