diff --git a/Examples/Library/progress-bar.html b/Examples/Library/progress-bar.html
index bf98a4f..a30772d 100644
--- a/Examples/Library/progress-bar.html
+++ b/Examples/Library/progress-bar.html
@@ -32,12 +32,10 @@
// progress-bar-update
let maxPercent = 0;
+
socket.addEventListener('message', (event) => {
const jsonData = JSON.parse(event.data);
-
-
-
if (jsonData.type === 'update') {
document.getElementById('progress-bar').style = `width: ${jsonData.data.percentComplete*100}%`;
if (jsonData.data.percentComplete > maxPercent) {