Hey guys, its me again

Im having another problem, I want to be able to load an external file, quick and easy, through anywhere in my javascript, to anywhere in my document.
Heres the code I made, should work with any image/<acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym>/css/xml files:
After making the above code, I decided that I want to make default functions for each file type that can be loaded into a html document, so I started of with these two:
Now, with the scripts I made, i can load a image perfectly, but when I tried the loading an external javascript file, it didnt work. I been trying to work this problem for over 7+ hours and no luck.
Maybe someone can try and run these scripts, and see if it works for you, and help me fix my problem
