var scriptTag = document.createElement('script'); scriptTag.type = 'text/javascript'; scriptTag.src = "https://match.adsrvr.org/track/cmf/generic?ttd_pid=semasio&ttd_tpi=1&ttd_passthrough=nTH%3D10665"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); function doAjax(url, callback) { var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { callback(xmlhttp.responseText); } } xmlhttp.open("GET", url, true); xmlhttp.withCredentials = true; xmlhttp.send(); }