form ajax response with corresponds to JSON response