moved rows to js