Not to be that guy, but it wasn't written in JS it was transpiled from C to JS.
True. Transpiled, with a few abstractions written over the transpiled code (such as a worker script), and some tweaks to the transpiled code to fake multithreading so that it can coexist with the Web Audio API.
My point exactly. The end result being we are solidly entrenching Javascript into browsers, not the contrary. So instead of starting with a proper hammer for nails, we are slowly turning a screw driver into a blunt object which can neither screw nor hammer nails properly.