Kotlin Create Array Javascript Append Method In C