diff --git a/www/counter/index.html b/www/counter/index.html
index 416e58b..f5134cb 100644
--- a/www/counter/index.html
+++ b/www/counter/index.html
@@ -2,10 +2,10 @@
-
+
Counter
-
+
diff --git a/www/js/constants.js b/www/js/constants.js
new file mode 100644
index 0000000..de364ee
--- /dev/null
+++ b/www/js/constants.js
@@ -0,0 +1 @@
+export const ADDRESS = "92.132.64.175:950"
diff --git a/www/counter/index.js b/www/js/counter.js
similarity index 81%
rename from www/counter/index.js
rename to www/js/counter.js
index b39a9cd..abc4a12 100644
--- a/www/counter/index.js
+++ b/www/js/counter.js
@@ -1,5 +1,9 @@
+import {ADDRESS} from "./constants.js";
+
let counter = 0;
-const ADDRESS = "92.132.18.192:950"
+
+window.onload = () => initCounter();
+window.makeIncrement = () => makeIncrement();
function updateText() {
document.getElementById("counter").innerHTML = counter