Add plugin-hook "js"
Use $link_head_script in a smarty-template to emit the path to the generated virtual javascript file