diff --git a/index.html b/index.html
index e9dcd70..c868379 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
js-keygen
- module = {};
+
diff --git a/js-keygen.js b/js-keygen.js
index 97c2149..037746f 100644
--- a/js-keygen.js
+++ b/js-keygen.js
@@ -49,4 +49,4 @@ function generateKeyPair(alg, size, name) {
});
}
-module.exportKey = { arrayBufferToBase64, generateKeyPair };
+module.exports = { arrayBufferToBase64, generateKeyPair };