fix for js_of_ocaml 2.4