JavaScript: Array.some