Generate An Array Javascript Append Input