Stuck trying to run a webgl library with Kotlin/JS

There seems to be a solution for those working on three.js: Using Kotlin/JS to write THREE programs - #3 by Yokiano - Questions - three.js forum