C Create Empty Array Javascript Append Element