Update details.js to check for the right key for phone and email to avoid an exception when a contact has a key we are not expecting.