added localStorage functionality on app.js