diff --git a/build.sh b/build.sh
old mode 100644
new mode 100755
diff --git a/src/ui/options.js b/src/ui/options.js
index 4a5cbaf9..e79484d9 100644
--- a/src/ui/options.js
+++ b/src/ui/options.js
@@ -107,7 +107,7 @@ document.querySelector("#version").textContent = _("Version",
if (f) f.remove();
f = document.createElement("iframe");
f.id = id;
- f.srcdoc = `NoScript Export`;
+ f.srcdoc = `NoScript Export`;
f.style.position = "fixed";
f.style.top = "-999px";
f.style.height = "1px";
@@ -115,7 +115,7 @@ document.querySelector("#version").textContent = _("Version",
let w = f.contentWindow;
let a = w.document.querySelector("a");
a.href = w.URL.createObjectURL(new w.Blob([settings], {
- type: "text/plain"
+ type: "application/json"
}));
a.click();
setTimeout(() => {