AngularJS wizard interfacing with Pega API