Twig in External jQuery
Just put your javascript file in the templates folder. E.g. place a file called external.js in the folder craft/templates/includes/. Then include it like this &lt;script src="/includes/external.js" type="text/javascript"&gt;&lt;/script&gt;

I don't know if this is an official way to do it, but it works.