Use Filter In Array Javascript Iteration Method