js: error calling function list [copybuf.js]

Sjoerd's icon

At my very last stage of the process of making a standalone, I get this error in my Max screen:

js: copybuf.js: Javascript TypeError: buf is undefined, line 15

js: error calling function list [copybuf.js]

But there is a buffer defined. In the Code and the buffer is in the maxpatcher. In Max it runs fine, but as soon as I have build the standalone, this happens. How can I resolve this?