Service wrapper for AngularJS