If you wish to compile Irrlicht for emscripten please check the documenation in examples/01.HelloWorld_emscripten.