Fix Ajax response classes.

Needs some further testing.
Plain ajax responses make no sense

ping @jusuff