Use adapter.ajax instead of $.ajax