fixing the JSON AJAX response treatment
review of the demo