Created a separate class for home view. Moved renderHomeView and findByName functions from main app object to the new HomeView class.
In index.html added HomeView.js script tag.
In main.js removed the renderHomeView and findByName functions. Changed initialize function to use the new HomeView class.