var tables = document.querySelectorAll('table'); var secondTable = tables[1];
var secondTable = document.querySelector('table:nth-of-type(2)');