Lichess has a WebAssembly version of Stockfish already (it's used in Firefox). All it needs is for WebAssembly to support multiple threads, which should hopefully happen some time before the PNACL phase-out.