Your screenshot shows the error: Loading of WebAssembly from URL "wasm/pas2js.wasm" failed: 404 File not found.
If the repo you cloned does not contain the .wasm files, then you need to use the FPC Wasm toolchain to build those files.
Attached screenshot from live.freepascal.org showing the .wasm files downloaded and running.