set type on script tag