Update .ajax to use non-deprecated callbacks