The answer is that new versions of Web APIs, such as the DOM, are not needed to make them usable from Wasm; the existing ...
You can enable Javascript on a Mac by going into your browser's Preferences menu. In Safari, you'll find the Javascript option in the Security tab.