Adaptation of the LLVM tutorial to asm.js