Combining random & date in ms should do the trick with almost no change of collision :
function uniqid(){_x000D_
return Math.random().toString(16).slice(2)+(new Date()).getTime()+Math.random().toString(16).slice(2);_x000D_
}_x000D_
alert(uniqid()+"\r"+uniqid());
_x000D_