diff --git a/extension/package.json b/extension/package.json
index e60d454..a9fe0e6 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -1,7 +1,8 @@
{
"dependencies": {
"react": "^17.0.1",
- "react-dom": "^17.0.1"
+ "react-dom": "^17.0.1",
+ "webextension-polyfill": "^0.7.0"
},
"name": "urbit-browser-manager-extension",
"version": "0.0.1",
diff --git a/extension/background/main.js b/extension/src/background/main.js
similarity index 100%
rename from extension/background/main.js
rename to extension/src/background/main.js
diff --git a/extension/background/page.html b/extension/src/background/page.html
similarity index 100%
rename from extension/background/page.html
rename to extension/src/background/page.html
diff --git a/extension/icons/urbit-icon.png b/extension/src/icons/urbit-icon.png
similarity index 100%
rename from extension/icons/urbit-icon.png
rename to extension/src/icons/urbit-icon.png
diff --git a/extension/manifest.json b/extension/src/manifest.json
similarity index 100%
rename from extension/manifest.json
rename to extension/src/manifest.json
diff --git a/extension/options/browser-polyfill.min.js b/extension/src/options/browser-polyfill.min.js
similarity index 100%
rename from extension/options/browser-polyfill.min.js
rename to extension/src/options/browser-polyfill.min.js
diff --git a/extension/options/options.html b/extension/src/options/options.html
similarity index 100%
rename from extension/options/options.html
rename to extension/src/options/options.html
diff --git a/extension/options/options.js b/extension/src/options/options.js
similarity index 94%
rename from extension/options/options.js
rename to extension/src/options/options.js
index 159170e..47795d0 100644
--- a/extension/options/options.js
+++ b/extension/src/options/options.js
@@ -1,3 +1,5 @@
+const browser = require("webextension-polyfill");
+
const urbitIdSelector = document.querySelector("#urbitId");
const urbitCodeSelector = document.querySelector("#urbitCode");
diff --git a/extension/popup/browser-polyfill.min.js b/extension/src/popup/browser-polyfill.min.js
similarity index 100%
rename from extension/popup/browser-polyfill.min.js
rename to extension/src/popup/browser-polyfill.min.js
diff --git a/extension/popup/popup.css b/extension/src/popup/popup.css
similarity index 100%
rename from extension/popup/popup.css
rename to extension/src/popup/popup.css
diff --git a/extension/popup/popup.html b/extension/src/popup/popup.html
similarity index 87%
rename from extension/popup/popup.html
rename to extension/src/popup/popup.html
index 62b3107..2e9c6ea 100644
--- a/extension/popup/popup.html
+++ b/extension/src/popup/popup.html
@@ -12,7 +12,6 @@
-