<script type="module"> fixes