Change type of template script tag