Advanced HTML table writes