track chatlog by index to avoid ng-repeat errors.