adding JavaScript for dynamically adding list items to each category.