https://github.com/treeform/nim_emscripten_tutorial