Transform a specific JSON data pattern to nestable list using handlebars templating.