this is how i do it.. this is insideof my js file
scriptFolder = '
http://geocities.yahoo.com/filemanager?directory=javascripts&dispopts=/'
scripts = new Array()
scripts[0] = 'cbox.js'
scripts[1] = 'cssinjection.js'
scripts[2] = 'friendrandom.js'
scripts[3] = 'messagebox.js'
scripts[4] = 'musicpalylist.js'
scripts[5] = 'randomphoto.js'
scripts[6] = 'replaceheaders.js'
scripts[7] = 'wvmbox.js'
scripts[8] = 'wvmcbox.js'
scripts[2] = 'ymstatus.js'
for(x in scripts){
myscripts = document.createElement('script')
myscripts.src = scriptFolder+scripts[x]
document.getElementsByTagName('head')[0].appendChild(myscripts)}