More simple function to generate HTML tables.
Should be compatible with some older browser versions.