document.getElementById("CurrentSong").innerHTML = "playing CALIFORNIA GIRLS by BEACH BOYS"; function refreshsongtitle() { var randomnumber = Math.floor(Math.random()*1000001) var headID = document.getElementsByTagName("head")[0]; var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.src = '//www.radiojackie.com/radiojackie/ajaxtitle.asp?target=_top&rnd='+randomnumber+'js'; headID.appendChild(newScript); }