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