[javascript] Permutations in JavaScript?