diff --git a/src/assets/hestia.js b/src/assets/hestia.js
index a2553c3..28c79c2 100644
--- a/src/assets/hestia.js
+++ b/src/assets/hestia.js
@@ -23,12 +23,6 @@ const config = {
}
};
-window.onload = function() {
- psState.init(config);
- comms.init(psState, config);
- refreshState(window.document, psState);
-};
-
function refreshState(doc, state) {
const igniterStatus = doc.getElementById("igniter-status");
const exhaustStatus = doc.getElementById("exhaust-status");
@@ -52,4 +46,10 @@ function refreshState(doc, state) {
function togglePower(element) {
psState[element].power(comms);
refreshState(window.document, psState);
-}
\ No newline at end of file
+}
+
+window.onload = function() {
+ psState.init(config);
+ comms.init(psState, config);
+ refreshState(window.document, psState);
+};
\ No newline at end of file
diff --git a/src/index.html b/src/index.html
index 21661fd..2b4d214 100644
--- a/src/index.html
+++ b/src/index.html
@@ -77,7 +77,7 @@
-
+