Runtime: improve io
Runtime: improve io

alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,alainfrisch/js_of_ocaml,alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,alainfrisch/js_of_ocaml,alainfrisch/js_of_ocaml