diff --git a/js/api.js b/js/api.js
index 2d2ec5ce2c..ddeb2efeb4 100644
--- a/js/api.js
+++ b/js/api.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/background.js b/js/background.js
index 34d91d5fc9..8f659c9c9d 100644
--- a/js/background.js
+++ b/js/background.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/crypto.js b/js/crypto.js
index 4162d05727..a5b04b200a 100644
--- a/js/crypto.js
+++ b/js/crypto.js
@@ -1,3 +1,19 @@
+/* vim: ts=4:sw=4
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see .
+ */
+
// functions exposed for replacement and direct calling in test code
var crypto_tests = {};
diff --git a/js/fake_api.js b/js/fake_api.js
index f82fe2016c..61691b4320 100644
--- a/js/fake_api.js
+++ b/js/fake_api.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/helpers.js b/js/helpers.js
index 42381a1ffd..60fb1c9672 100644
--- a/js/helpers.js
+++ b/js/helpers.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/options.js b/js/options.js
index 04865e01d4..9b8106ed93 100644
--- a/js/options.js
+++ b/js/options.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/popup.js b/js/popup.js
index 07eab9cc26..341ee4e649 100644
--- a/js/popup.js
+++ b/js/popup.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/test.js b/js/test.js
index a7eaa49177..a67efe0d7a 100644
--- a/js/test.js
+++ b/js/test.js
@@ -1,4 +1,5 @@
-/*
+/* vim: ts=4:sw=4
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/js/webcrypto.js b/js/webcrypto.js
index 1c94db6e50..be9d240381 100644
--- a/js/webcrypto.js
+++ b/js/webcrypto.js
@@ -1,3 +1,19 @@
+/* vim: ts=4:sw=4
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see .
+ */
+
/* Web Crypto polyfill. TODO: replace with web crypto */
// All inputs/outputs are arraybuffers!
window.crypto.subtle = (function() {