Prelude data, AJAX code