AngularJS array service with some extra methods