I have the following HTML tables and Javascript function, using SheetJS to parse the tables then export them to an excel file.