How can I create a single object containing the data when the id question is equal and within a $ each loop?