Removed unnecessary $scope variables