var coatMap = {
	'Shorthair': 'Short Hair',
	'Longhair': 'Long Hair',
	'Double Coat': 'Long Hair'
};
var wd = '';
		
var ct = coatMap[pet.coat_type] ? coatMap[pet.coat_type] : '';		

var cpackage = gsearch.packages.filter(p => { 
	return p.name.toLowerCase().indexOf(category.name.toLowerCase()) > -1 &&
		p.name.toLowerCase().indexOf(ct.toLowerCase()) > -1 &&
		p.name.toLowerCase().indexOf(wd.toLowerCase()) > -1
})[0];

var package = JSON.parse(JSON.stringify(cpackage));
