Implemented DRY in 'data' controller. Added comments for better understanding. Removed ng-init from index.html.