Kotlin Create Array In Javascript Functions