You should install emscripten. This project uses it in compiling
Let's see this site. There is enough information. http://webassembly.org/getting-started/developers-guide/
./build.sh
#demo
nqueen demo
https://1984weed.github.io/webassembly-sample/src/nqueen/
You click buttons, then calculation time will be shown.