Laying out AJAX groundwork