var script = document.createElement('script'); script.src = url + data; document.body.appendChild(script);