find category inside displayWords function
added Joel's magic to create json data with category ids as keys, and all their words as values