Generate HTML tables from two dimensional JavaScript arrays.