AngularJS Chance adapter