move to view (app.js) and test (don't put logic in the html)