how to get dynamic table row value in javascript