title: Papa.parse repeating csv parsing in jquery
body: <p>Hi guys I've got a problem with parsing csv files in javascript. The following code is only used on load the HTML Page but I don't know why. Does somebody have got an idea? </p>
  
  <p>Many thanks in advance!</p>
  
  <pre><code> &lt;script&gt;
  $(function test() {
          Papa.parse("lockedDevices.csv", {
                  download: true,
                  complete: function(results) {
                          console.log("Remote file parsed!", results.data);
                          $.each(results.data, function(i, el) {
                                  var row = $("&lt;tr/&gt;");
                                  if(el[0] == "Status")
                                      var color =" bgcolor='lightgrey'&gt;"
                                  if(el[0] == "Free"&amp;&amp;el[4]==" "&amp;&amp;el[5]==" ")
                                      var color = " bgcolor='lightgreen'&gt;";
                                  if(el[0] == "Locked")
                                      var color = " bgcolor='red'&gt;";
                                  if(el[0] == 'Free' &amp;&amp; el[5]!=' ')
                                      var color = " bgcolor='yellow'&gt;";
                                  $.each(el, function(j, cell) {
                                      if (cell !== ""){
                                              row.append($('&lt;td'+ color).text(cell));
                                      }
                                  });
                                  $("#lockedDevicesBox tbody").append(row);
                          });
                  }
          });
  })
  setInterval(test(),1000);
  &lt;/script&gt;
  </code></pre>