diff --git a/media/js/event_inspector/eventInspector.js b/media/js/event_inspector/eventInspector.js
index 8e903447eb664dcacfef38932a4ad840c74b2b77..58830e16e7661846dacc23495a80be97e1eaed9d 100644
--- a/media/js/event_inspector/eventInspector.js
+++ b/media/js/event_inspector/eventInspector.js
@@ -6,9 +6,9 @@ var inspectorList;
 $(function () {
     $('body').append('<div class="EventInspectorList"></div>');
     inspectorList = $('div.EventInspectorList');
-    inspectorList.on('click', 'div.EventItem', () => $(this).remove());
+    inspectorList.on('click', 'div.EventItem', function() { $(this).remove(); });
 
-    $(window).scroll(() => {
+    $(window).scroll(function() {
         let size = $(this).scrollTop() > 40 ? '20px' : '50px';
         inspectorList.css('top', size);
     });
@@ -34,7 +34,7 @@ var EventInspector = {
         else
             this.show(failMsg, 'error');
     },
-    
+
     error: function (text) {
         this.show(text, 'error');
     },