Looks like you didn't actually look at the link :)
By the way, JavaScript IS quite fast. I ported some code from Swift to Typescript recently, and its runtime went down from 15 seconds to 2 seconds. It wasn't a 1-1 port because I improved things, so it is not a fair comparison, but I was very positively surprised.
Hmm, I think we found the reason....