created javascript function to random gen strings

created javascript function to random gen strings