add type attribute to script tag