Use of Math.random() * 1000 (line 324) would cause ID collisions when number of elements exceeded
1000.  This is fixed by using Math.random once to get a random "salt" value, then suffixing
this in the jQuery.each(i, v) call with the "i" (index) value passed to each's function argument.