Javascript Check If Element In Array