Javascript Check If String Exists In Array Literal And Non