John Resig’s degrading script tags
<script src="some_js_file.js"> // Do something with the loaded file. callSomething(); ... </script>
Interesting huh? To make this work, the loaded script file itself will end with the a two-liner that basically find the script element and evaluates the innerHTML of the element:
var scripts = document.getElementsByTagName("script"); eval(scripts[scripts.length - 1].innerHTML);
Well, still, it is an ingenuous way of utilizing eval.