$("#sort_headers").html("<%= j render 'sort_headers' %>");
$("#tbody_writing_patents").html("<%= j render :partial => 'writing_patent', :collection => @writing_patents %>");
$("#writing_patent_pagination").html("<%= j paginate @writing_patents, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>");