Ajax update

It's better to specify this sort of thing on a per-form basis.  Set the `data-type` attribute on the form to specify JSON.