Javascript function / prototype for shuffling arrays of things.