Extract Element From Array Javascript Append Function In C