text: function loadJSON(t,e,n){var s=new XMLHttpRequest;s.onreadystatechange=function(){s.readyState===XMLHttpRequest.DONE&&(200===s.status?e&&e(JSON.parse(s.responseText)):n&&n(s))},s.open("GET",t,!0),s.send()}function generateIpsum(t){loadJSON("data.json",function(t){console.log(t)},function(t){console.error(t)});var o,e=5,n=11,s=Math.floor(Math.random()*(n-e))+e,r="";for(i=0;i<s;i++)o=quotes[Math.floor(Math.random()*(quotes.length-1))],("."===r.substring(r.length-1,r.length)||"?"===r.substring(r.length-1,r.length))&&(o=o.substring(0,1).toUpperCase()+o.substring(1,o.length)),r+=" "+o;document.getElementById(t).innerHTML=document.getElementById(t).innerHTML+"<p>"+r.substring(0,r.length+1)+"</p>"}