Contains Method In Javascript Array Foreach