$(document).ready(function () {

    /*Navigation initialization*/
    var navigation = $('#navigation');
    var navShown = false;
    $('#nav-controller').on('click', function () {
        if (navShown) {
            navigation.removeClass('show-nav');
            navigation.addClass('hide-nav');
            navShown = false;
        } else {
            navigation.removeClass('hide-nav');
            navigation.addClass('show-nav');
            navShown = true;
        }
    });

    /*Bootstrap Popover initialization*/
    $(function () {
        $('[data-toggle="popover"]').popover()
    });

    /*Verical scorlling*/
    $(function () {
        function scrollHorizontally(e) {
            e = window.event || e;
            var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
            document.getElementById('horizontal-scrolling').scrollLeft -= (delta * 40); // Multiplied by 40
            e.preventDefault();
        }

        if (document.getElementById('horizontal-scrolling').addEventListener) {
            // IE9, Chrome, Safari, Opera
            document.getElementById('horizontal-scrolling').addEventListener("mousewheel", scrollHorizontally, false);
            // Firefox
            document.getElementById('horizontal-scrolling').addEventListener("DOMMouseScroll", scrollHorizontally, false);
        } else {
            // IE 6/7/8
            document.getElementById('horizontal-scrolling').attachEvent("onmousewheel", scrollHorizontally);
        }
    });

    /*File uplad button*/
    document.getElementById("uploadBtn").onchange = function () {
        document.getElementById("uploadFile").value = this.value;
    };
});
@@ -133,28 +133,96 @@
     
-$('#nav-controller')
+var navController = $('#nav-controller');%0A    if (navController) %7B%0A        navController
 .on(
@@ -236,32 +236,36 @@
 , function () %7B%0A
+    
         if (navS
@@ -276,32 +276,36 @@
 ) %7B%0A            
+    
 navigation.remov
@@ -328,32 +328,36 @@
 ');%0A            
+   
+ 
 navigation.addCl
@@ -377,32 +377,36 @@
 ');%0A            
+    
 navShown = false
@@ -407,32 +407,36 @@
  false;%0A        
+  
+  
 %7D else %7B%0A       
@@ -420,32 +420,36 @@
        %7D else %7B%0A
+    
             navi
@@ -484,32 +484,36 @@
 ');%0A            
+    
 navigation.addCl
@@ -521,32 +521,36 @@
 ss('show-nav');%0A
+    
             navS
@@ -566,33 +566,47 @@
 ue;%0A        
-%7D%0A
+    %7D%0A   
     
+ 
 %7D);
+%0A    %7D
 %0A%0A    /*Boot
@@ -1073,20 +1073,42 @@
         
-if (
+var horizontalScrolling = 
 document
@@ -1138,32 +1138,104 @@
 ntal-scrolling')
+;%0A        if (horizontalScrolling) %7B%0A            if (horizontalScrolling
 .addEventListene
@@ -1235,24 +1235,28 @@
 Listener) %7B%0A
+    
             
@@ -1301,33 +1301,12 @@
     
-document.getElementById('
+    
 hori
@@ -1307,34 +1307,33 @@
   horizontal
--s
+S
 crolling
 ').addEventL
@@ -1312,34 +1312,32 @@
 izontalScrolling
-')
 .addEventListene
@@ -1392,16 +1392,20 @@
         
+    
 // Firef
@@ -1423,33 +1423,12 @@
     
-document.getElementById('
+    
 hori
@@ -1429,34 +1429,33 @@
   horizontal
--s
+S
 crolling
 ').addEventL
@@ -1442,18 +1442,16 @@
 crolling
-')
 .addEven
@@ -1506,32 +1506,36 @@
 false);%0A        
+    
 %7D else %7B%0A       
@@ -1519,32 +1519,36 @@
        %7D else %7B%0A
+    
             // I
@@ -1571,33 +1571,12 @@
     
-document.getElementById('
+    
 hori
@@ -1581,26 +1581,25 @@
 rizontal
--s
+S
 crolling
 ').attac
@@ -1590,18 +1590,16 @@
 crolling
-')
 .attachE
@@ -1640,16 +1640,30 @@
 tally);%0A
+            %7D%0A
         

Resolve all the JS errors