tags.scripts: handle function attribute