Version with basic AJAX and JSON.