Put your <script...> call into a tiddler (any name), and tag that tiddler with $:/tags/RawMarkup
When the document is saved, it will automatically insert the content from tiddlers with that tag directly into the <head> of the document file, so that the script will be invoked the next time you reload.
As a side note, you should *never* have to hand-edit the TiddlyWiki source file to add functionality. Most of the time, there are already hooks and other mechanisms for adding customizations to the core code.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals