chmWriteCustomJS function

Output Javascript code required to customize an NGCHM.