new function toggleSubCategoryList. updated displaySubCategoryList to append rendered template for each subcategory, bound it to the change:subcategories event.