You need to use Sling Models. You can find the answer in this AEM HELPX COMMUNITY Article: Adobe Experience Manager Help | Creating a HTL Repeating Data Set 6.4 Component that uses Sling Models Hope this helps...
This article shows you exactly how to interate through a collection (Multifield) using HTL:Adobe Experience Manager Help | Creating a HTL Repeating Data Set 6.4 Component that uses Sling Models
I do not think you can use JS to get this type of information - you would need to use the Strongly types API: "The Adobe AEM Quickstart and Web Application." So to hook this API into an HTL component - you should use SLing Model - not JS HTL.
Lokesh covers this in this webinar: Scott's Digital Community: [Webinar | February ] Ask the AEM Community Expert: Best practice to query JCR data using Que…