[javascript] How do I iterate through table rows and cells in JavaScript?