defined $rootScope in the homeCtrl.js file