Moved home page insertion in app.js as it is more logic and less verbose