index.html & app.js new functions