добавлена проверка на ajaxSettings is undefined
remove trailing slash and update docs