C Create Empty Array Javascript Append Function