I’m unsure how to reference or call the generated javascript. It’s basically gibberish.

Say my ocaml is:

```
let rec sort = function
| [] -> []
| x :: l -> insert x (sort l)
and insert elem = function
| [] -> [elem]
| x :: l -> if elem < x then elem :: x :: l
else x :: insert elem l;;
```

how would I call the translated javascript function?:

```
// something like this
// function sort(arr) {}
sort([3,1,2])
```