Looked for it everywhere, and found the answer but lost. anyone knows how to load an external .js file from another js file?
main_lobj1.onreadystatechange =
This is the way you can do it to load an external js file to Jquery
$.ajax({ type: "GET", url: "test.js", dataType: "script" });