Ruby Check If One Array Contains Javascript