app/views/authors/index.js.erb
( function() {
var authorMarkup = '<%= escape_javascript( render( partial: "authors/author", collection: @authors ) ) %>'; '<%= escape_javascript( render( partial: "authors/author", collection: @authors ) ) %>';
$( '.js-search-results' ).html( authorMarkup );
} )();