https://api.jquery.com/jquery.ajax/#data-types
Цитата:
|
If script is specified, $.ajax() will execute the JavaScript that is received from the server before passing it on to the success handler as a string.
|
Наверняка в самом скрипте синтаксическая ошибка...