append attribute type in "script" tag