AngularJS implementation for Karma API