As a quick explanation to go along with the example Tobias made, the reason the code you posted won't work is that the scripts won't be loaded if they are just in a normal tiddler. Putting them in a tiddler tagged with $:/tags/RawMarkup will put them in the head of the html file and load the scripts when the page loads.
-- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0f1714d5-1fbc-4daa-a300-1af3fa48b9e9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

