Find If Value Exists In Array Javascript Iteration