Der dazugehörige Code:
<div id="counter">0</div>
<p id="paragraph"></p>
<script type="text/javascript">
//var blob = new Blob(['foo', 'bar', 'kein Komma'], {type : "text/plain"}); //, { type: 'plain/text', endings: 'native' }
var debug = {hello: "world"};
var blob = new Blob([JSON.stringify(['foo', 'bar', 'kein Komma'])]);
var myReader = new FileReader();
myReader.addEventListener("loadend", function(e){
document.getElementById("paragraph").innerHTML = e.srcElement.result;//prints a string
});
myReader.readAsText(blob);
%q.id%.sendBLOB(blob);
</script>