Improved AJAX support.