added template function minify_js()