JavaCaml solving the N queens problem

Please input a small number N (approx. from 1 to 15):
 

The OCaml source code
The JavaScript source code