All I need to do is compare two arrays of objects and remove items in the second one that have the same property value. For example:
var a = [{\'name\':\'bob
You just need to break the inner loop when a match is found:
if (a[i].name == b[j].name) { b.splice(j, 1); break; }