Create pseudo-random string of characters in javascript