tags.scripts: load each script and wrap contents in a function