Typescript Html Number Formatting Javascript