They run that stuff server side so like the new get Monero page for example will be using a framework that generates static web pages to host that do not contain any JavaScript at all but the back end on the server uses JavaScript to generate the HTML pages