Check String In Array Javascript Iteration