js_of_ocaml: add deps on Ocaml version

Versions 1.4.0 and 2.0 of js_of_ocaml do not compile on OCaml 4.02.0.