Implementing Collections.Shuffle() In JavaScript