Add attribute to detect AJAX requests.