implement emscripten_wget