Javascript Check If Array Contains Elements