Calling Kotlin from HTML(Javascript), TypeError problem

Using @JsName is the right solution indeed. Having to use @JsName when calling Kotlin function from JS is intended feature. Its not very pretty IMO, but it is there because JavaScript doesn’t support function overloading. More about it here: Mandatory method mangling when compiling to JS