creating JS filtering for categories.