update script type attr