At wits end here. Why does this work on a local basis but when uploaded to website it does not.
function loadJSscript(TheFile){
sscriptFileNameFinal=TheFile
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = jsscriptFileNameFinal;
document.getElementsByTagName('head')[0].appendChild(script);
}
function loadJSscript(TheFile){
sscriptFileNameFinal=TheFile
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = jsscriptFileNameFinal;
document.getElementsByTagName('head')[0].appendChild(script);
}