Filter Array With Another Array Javascript Iterations Math