You won’t be able to target it by name in javascript, as its name is the same for each row. I imagine there’s a reason that you want to use javascript, but you can do this with the Mark Rows command:
Oh wait - if you want to use javascript, you might take a look at this site. Particularly, this example. It doesn’t cover marking rows, but it might get you started in that direction.