A detail I've noticed when compiling to JavaScript is that Kotlin is not a reserved word, and if you bind something to it, it breaks the generated JavaScript.
fun main(args : Array<String>) {
println("Hello, world!")
val Kotlin = 0
}will result in a type error