adds ajax handling to loadExternalFiles.js -> ajaxLoadExternalFiles
clean up. some more testing done- ok.