ajax fix for async: false being deprecated