code: function randomString(length, chars) {
    length = length || 8;
    chars = chars || '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    var result = '';
    for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
    return result;
  }
docs: ------------------ other utilities credit: https://stackoverflow.com/questions/10726909/random-alpha-numeric-string-in-javascript