change code to suppress deprecated jquery AJAX code