Connecting to CMS from HTML JS

Hey guys,

So I am using Mapbox with a list that I want to hook up to my CMS. I have attached a link to a working codepen where I put the JS script in the HTML under the “listings” div and it works fine in the pen. My problem is that I can’t figure out the proper structure of my embeds with the dynamic list to make each “listing” (my JS content under “var stores”) display like the codepen.

Thanks for the help!

Currents structure in Webflow:

(Text from the script tag shows up but the field content from the CMS content doesn’t.)

HTML/CSS (outside of dynamic list):

JS (inside of dynamic list):