Change text:
to html:
and add the icon before username.
$('<div/>', {
html: '<i class="icon-sign-blank"></i> '+userName,
id: userElementId,
onmouseover: "function1('" + userName + "', this)",
onmouseout: "function2()",
}).addClass('user').appendTo('#parentDiv');