var req = new XMLHttpRequest();req.open("cfg.json", true);req.onreadystatechange = function(){ if(req.readyState == XMLHttpRequest.DONE){ var obj = eval("(" + req.response + ")"); var path = obj.cfg[0].path; document.write("