Item Exists In Array Javascript Iteration