Javascript Check If Array Of String Constants