I found this: http://www.symfony-zone.com/wordpress/2008/12/13/use-routing-to-server-localized-and-dynamic-javascript/
But I saw that it has already been built into Symfony with the use_dynamic_javascript() AssetHelper.
I can't find any documentation for using this helper though. Any examples, links, or anything to help? Thanks.