Moved page definitions to templates/
Modified app.js