$scope.agents array remove the last unessesary comma