diff --git a/examples/templates/example.html b/examples/templates/example.html
index c8abb1558a..f1f3a311a4 100644
--- a/examples/templates/example.html
+++ b/examples/templates/example.html
@@ -208,7 +208,7 @@
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
</head>
<body>
-{{ indent contents spaces=4 }} <script src="main.js"></script>
+{{ indent contents spaces=4 }} <script type="module" src="main.js"></script>
</body>
</html>