Create (nested) HTML unordered lists from categories array.