Moved page logic from app.js to index.js.
Use title variable in title element in head.