Simplifies AJAX messages, recommended for Laravel users.