server: fix AJAX response on config page