Modify AngularJS format