Plack::Middleware::JSConcat allows you to concatenate multiple javascripts files into one. It provides a content-hashed key as the url for including all the javascript files you specified. You can also provide a filter program to minimize the concatenated file.