var head= document.getElementsByTagName('head');
var script= document.createElement('script');
then, run the loaded function and gives the function undefined error. The files are loaded and added to head section in chrome console. The reference
said dynamic loading functions are relied on the browser. I tried $.getScript() and DOM to add elements but it does not work.
Please tell me how to fix the errors. Or how to call function properly, for misplacement.