Moved ajax callbacks back inline

Didn't even test previous commit/sync