OCaml toplevel improve in js_of_ocaml