diff --git a/src/main/resources/static/qr-scanner.html b/src/main/resources/static/qr-scanner.html
index 9574611bfdaad7e375e1da37dfdd74d70990a1c6..8ff5ab8f2143b1cd4f5b4bb8e9557ef9cd607d1e 100644
--- a/src/main/resources/static/qr-scanner.html
+++ b/src/main/resources/static/qr-scanner.html
@@ -6,8 +6,8 @@
     <meta name="viewpoint" content="width-device-width, initial-scale=1.0">
     <link rel="stylesheet" href="qrstyle.css">
     <title>QR Code</title>
-    <script src="html5-qrcode.min.js"></script>
-    <script src="scripts/qr-script.js" class="domReady" type="text/javascript"></script>
+    <script th:src="@{https://unpkg.com/html5-qrcode}" type="text/javascript"></script>
+    <script th:src="@{scripts/qr-script.js}" class="domReady"></script>
 </head>
 
 <body>
diff --git a/src/main/resources/static/scripts/qr-script.js b/src/main/resources/static/scripts/qr-script.js
index 5e30f4861648a31cbeb36f67d610cf16a92bd003..324040794cfcdf7503f5e2485174c27ab7b13b60 100644
--- a/src/main/resources/static/scripts/qr-script.js
+++ b/src/main/resources/static/scripts/qr-script.js
@@ -1,6 +1,7 @@
 //qr-script file - R Nute
 import {Html5QrcodeScanner} from "html5-qrcode";
 import {Html5Qrcode} from "html5-qrcode";
+
 function domReady(fn){
     if (
         document.readyState === "complete" ||