added js to get row data