Find matches in complex javascript objects