Refactored some Angular code to split the Home template.