Playing with selections and ranges using Js_of_ocaml