I am not very good at standard Javascript, but you can try to do something like this:
var script_object = new addScript('jquery.js'); script_object.onLoad('addScript("my_jquery_related.js")');
Admittedly, this is a mega shot in the dark.
If this does not work, perhaps go through your function as a callback variable to your JS loader:
addScript(url, function(){ function_to_call();}) function addScript(url, call_back_function) { var script = document.createElement('script'); script.src = url; document.getElementsByTagName('head')[0].appendChild(script); call_back_function.call; } addScript('jquery.js');
What I got: \
source share