Hi Mladen,
To dynamically load a widget, use the twttr.widgets.createTimeline() function. Check out [node:184, title=“TFW JavaScript interfaces documentation”] for full detail, but for the code you’ve used there, something like this might work:
twttr.widgets.createTimeline(
‘your-timeline-id’,
// your ID
$(’.twitter-timeline’)[0].parentNode,
// the container element to inject the timeline into
false,
// a callback function, if you want to execute something
// after it renders. Or not.
{ screenName: twitter_username }
// configuration options, in this case the username
// to render
);
Hope that helps.
Ben