Just substitute asm.js with WASM and you're still on the right track.