Initial work supporting emscripten compilation