Fixed bug in loading the script element for AJAX.