Javascript Check If Element Exists In Array