Add optional number-format attribute for formatting of output textContent