diff --git a/assets/js/site.js b/assets/js/site.js
index a9acea2..3036497 100644
--- a/assets/js/site.js
+++ b/assets/js/site.js
@@ -10,7 +10,6 @@
         showModal: false,
         feedLink: '',
 
-        // Server variables
         featureLevel: 0,
         userId: '',
     },
@@ -99,5 +98,13 @@
                 vm.showModal = false;
             }
         });
+
+        axios.get('/api/user').then(function (response) {
+            vm.userId = response.data.user_id;
+            vm.featureLevel = response.data.feature_level;
+        }).catch(function() {
+            vm.userId = ''
+            vm.featureLevel = 0;
+        })
     }
 });
\ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index 3c17bb2..d3a71e2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -163,11 +163,6 @@
 <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
 <script src="assets/js/site.js"></script>
 
-<script type="application/javascript">
-    app.featureLevel = {{.FeatureLevel}};
-    app.userId = {{.UserId}};
-</script>
-
 <script>
     (function (i, s, o, g, r, a, m) {
         i['GoogleAnalyticsObject'] = r;