You could give that block of html an id and set it to hidden, to use as a template.
<div id="template" style="display:hidden">
<div class="name"></div>
<h1 class="subscription"></h1>
</div>
Then in your success method (in your loop), you just clone() that html block, and find() the elements where you want to insert your data, place your data where it needs to go and then insert that clone into the dom where you want it to display.
// clone the template and make it visible
let $clone = $("#template").clone( true );
$clone.css("hidden", false):
// populate the template with data from ajax request
$clone.find(".name").html(data.name);
$clone.find(".subscription").html(data.subscription);
// insert the clone into the dom somewhere
$("#some-dom-element").append($clone);
That's not a drop in replacement and you'll need to adjust for your array/loop, but should show you how to basically do what you're asking.