title: Create spacing in data list
body: <p>How do I space out the output, i considered using the each() method but I couldn't figure out how to use it. I can do this with Django for loop without ajax, but with ajax it seems the for loop tag doesn't work here's the code.</p>
  <pre><code>current output = 1.0768411833.01.28164125.6340.91000
  
  expected output = 1.07684 11833.0 1.28164 125.634 0.91000
  
  &lt;h2 id=&quot;prices&quot;&gt;&lt;/h2&gt;
  
  &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
      const doAjaxWithDelay = (delay) =&gt; {
          setTimeout(() =&gt; {
              var data = $(this).data()
              $.ajax({
                  url: &quot;/price&quot;,
                  type: &quot;GET&quot;,
                  success: function(data) {
                      document.getElementById('prices').innerHTML = data;
                      console.log(data)
                  }
              }).done(() =&gt; {
  
                  doAjaxWithDelay(5000)
  
              })
          }, delay)
      }
  
      doAjaxWithDelay(0)
  &lt;/script&gt;
  </code></pre>