JavaScript Problem: Comparing Two Arrays without Loops