Exposing library services with AngularJS