Kotlin Create Array Javascript Append Html