inlinecomponent: separate JS function to render read rows