AJAX response basic framework