how to set row id dynamically in javascript