bug [ 1108948 ] Cookie.py produces invalid code
diff --git a/Lib/Cookie.py b/Lib/Cookie.py
index a6ca654..4661d7c 100644
--- a/Lib/Cookie.py
+++ b/Lib/Cookie.py
@@ -470,9 +470,9 @@
     def js_output(self, attrs=None):
         # Print javascript
         return """
-        <SCRIPT LANGUAGE="JavaScript">
+        <script type="text/javascript">
         <!-- begin hiding
-        document.cookie = \"%s\"
+        document.cookie = \"%s\";
         // end hiding -->
         </script>
         """ % ( self.OutputString(attrs), )