Use Filter In Array Javascript Append Method In C