Ensured compatibility when attachToHTMLTable is used with the second argument: the format for optionValues is converted if needed.

Note that using attachToHTMLTable with two args is deprecated (use "load" instead).