How To Check Element In Array In Javascript