JavaScript : How do I check if an array includes a value in JavaScript?