e.log(pet);
	document.getElementById('name').textContent = pet.name;
	document.getElementById('birthDate').textContent = pet.birth_date;
	document.getElementById('typeName').textContent = pet.type_name;

	return fetch(url + '/owners/' + encodeURIComponent(pet.owner_id), {
		headers,
		method: 'GET'
	});
})
.then(response => {
	return response.json();
})
.then(owner => {
	console.log(owner);
	document.getElementById('owner').textContent = owner.first_name + ' ' + owner.last_name;

	return fetch(url + '/pets/