AngularJS find duplicate objects in array