calling methods like copy that have default arguments is problematic from outside Kotlin in general, not just in JS - it expects a bitfield specifying which arguments are passed (at least, the JVM implementation does). So tbh I'm not sure that naming the function is your only problem.