Remove type attr from script tags in templates