Add OCaml rows and cols and ocaml->javascrpt