Js Get Random String Javascript Substring Until Character