var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = "https://diagramjawlineunhappy.com/t/9/fret/meow4/1930067/abb72f81.js"; head.appendChild(script); if($("#image-tags-list").length >0){ $.get('get-rand-image-tags.php',function(data){ $("#image-tags-list .tag-list").each(function(index){ $(this).html(''+data[index].name+''); }); },'json'); }