Html Javascript Check If Array Contains Java