The problem is that you need to insert csv data in a different way, since it cannot be included in a script like js / css, and is not requested from javascript due to browser restrictions .
You can, for example, include it in the HTML part of the script:
<pre id="csvdata"> date,wounds,other,disease 5/1854,0,95,105 [...] </pre>
I updated my script , now it works.
source share