You cannot use AJAX to import other JavaScripts, because JavaScript cannot be written dynamically. Functions and variables can be created dynamically, but that is by code already in existence within the page.