$("#body-content").html("<%= escape_javascript(render 'adminpanel/shared/index_records', collection: collection ) %>");