Web Notifications AngularJS Service