bug fix

ngAnimate dependency in mainApp was causing an error with ng-class
trying to update value.
$scope.$apply() was causing an error, replaced with $timeout()