exercise of compiling altjs by ocaml