This is a matter of preference, but we've found it beneficial to move AJAX work out of controllers and into models -- even if you need to create virtual or one-off models.