beginning to get it the right way with AJAX and ActiveRecord