Adds row construction callback to js plugin