Return JSON object when request by AJAX