Added AngularJS service for alerts