Your complaints have little to do with wasm; as the post says it has no direct access to the DOM.
wasm is only supposed to speed up heavy computations like those needed to decode and rasterize the PDF, modifying the page is still done through javascript.