Solves issue #5

Fixed issue with randomString() function that generated "undefined"
participant codes in IE 7-9.