Converts HTML tables to Javascript arrays