Updated the AJAX response to respond with the Response::json() method instead of standard Response::make().