Javascript Check If Array Has A Value