diff --git a/docs/index.html b/docs/index.html
index fea6b215..2c4b970b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -101,9 +101,9 @@
     		}, 1000);
         }
     	function downloadFile(uri) {
+    		cnt = 10;
 			$('#download-counter').show();
 			$('#download-counter').html("Your download starts in... " + cnt);
-    		cnt = 10;
     		downloadCounter(uri);
     	}
     	</script>