Removed unnecessary fourth argument 'ajaxOptions' from ajax() and fixed
compatibility with newer jQuery versions