Finally I've got it working. However, I've realized that it is generally a dirty approach (you all told me so) to execute incoming JS as-is. But, as long as my question was about that dirty approach, I'll post an idea of how to make it work if you really need it.
Given that we have parsererror
status in case we supply plain JS, we can:
$('#answerForm').on('ajax:error',
function(e, data, status, xhr)
{
$.globalEval(data.responseText);
}
);
Thanks everyone!