javascript filter array of objects by another array of objects