$("table.records").replaceWith("<%= escape_javascript(render('reports_table', :collection => collection)) %>");