Finished buildJSON function in  getContacts script