Typescript Get Max Value Of Array Javascript Append To Html