Currently calling system() hangs the interpreter. This is likely due to it trying to wait in a busy loop for a process that hasn't started (no processes in JS). The fix will probably involve tinkering with the C code rather than Emscripten, but shouldn't be too hard once the exact problematic loop is found.