A simple example of porting C applications to Javascript using Emscripten