add type attribute to script tags