Update search.ml (fix type errors because of the new api of js_of_ocaml)