how to get table row index in javascript