[fs] add support for emscripten