\
\
'+relativeTime(this.created_at)+'
\
'+formatTwitString(this.text)+'
\
'; container.append(str); }); container.jScrollPane(); } function formatTwitString(str) { str=' '+str; str = str.replace(/((ftp|https?):\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?)/gm,"$1"); str = str.replace(/([^\w])\@([\w\-]+)/gm,'$1@$2'); str = str.replace(/([^\w])\#([\w\-]+)/gm,'$1#$2'); return str; } function relativeTime(pastTime) { var origStamp = Date.parse(pastTime); var curDate = new Date(); var currentStamp = curDate.getTime(); var difference = parseInt((currentStamp - origStamp)/1000); if(difference