VE-739 Match in middle of text when searching for categories

I don't know how well current JS engines optimize it, but even year ago, this could be optimize by declaring variable, for instance "allcategories", and pushing to it instead of accessing desired object each time with two dots (formattedData dot query dot allcategories).