Updates for better AJAX and REST applications.