Missing details for javascript in documentation
In [documentation ](https://doc.kaitai.io/user_guide.html#opaque-types) it is stated;

> By default, specifying a plain name invokes a custom processing class in the same namespace/package where the code is generated. If you want to keep your generated code in a separate namespace/package than your custom hand-made code, you can specify it like this:

```
seq:
  - id: buf
    size: 50
    process: com.example.my_rle(5, 3) 
```

> For Java, this would result in an invocation of com.example.MyRle class. Other languages use similar rules of translation; **see language-specific notes for details**.

(bold is mine)


But in [javascript specific-notes](https://doc.kaitai.io/lang_javascript.html) there is no explanation about how to access a custom processor.

I wrote this code for testing:

```
function  MyCustomProcessor(a) {
	console.log("A=",a)

	function decode(a) {
	console.log("ricevo ",a);
	console.log("restituisco ", a+1);
		return a+1;
		}

	return { decode : decode}
}
```

And this KSY file:

```
seq:
  - id: buf
    size: 50
    process: MyCustomProcessor(1) 
```

But of course it works only if I put my code inside the auto-generated code, which is dangerous because my code could be overwritten "anytime" if I update the KSY file.

So, in pure client-side javascript , how do I make kaitai access a function outside of its generated .js file?

By the way: I think it should be underlined that line

`<script src="KaitaiStream.js"></script>`

shall be placed before any other kaitai-generated script...: at first run I spent hours figuring out why I could not get kaitai working...