Nginx doesn't have a default mapping for .mjs so doesn't serve it with the JavaScript MIME type, which upsets the browser.