    $('#bw-shell-left').click(function() {
      if ($('span.bw-previous:first a').attr('href') != null) {
        document.location.href = $('span.bw-previous:first a').attr('href');
      }
    });
    /* Show directional clue when turning back */
    $('#bw-shell-left').hover(function() {
      $('#bw-left-arrow').fadeIn(2000);
    },
    function() {
      $('#bw-left-arrow').fadeOut('fast');
    }
    );

    /* Show directional clue when turning forward */
    $('#bw-shell-right').hover(function() {
      $('#bw-right-arrow').fadeIn(2000);
    },
    function() {
      $('#bw-right-arrow').fadeOut('fast');
    }
    );

    $('#bw-shell-right').click(function() {
      if ($('span.bw-next:first a').attr('href') != null) {
        document.location.href = $('span.bw-next:first a').attr('href');
      }
    });

       $(document).bind('keydown', function(e) {
           var code = (e.keyCode ? e.keyCode : e.which);
           console.log(code);
           if (code == 78 ) {  // 'n'
               if ($('span.bw-next:first a').attr('href') != null) {
                   document.location.href = $('span.bw-next:first a').attr('href');
               }
           }
           if (code == 80) {  // 'p'
               if ($('span.bw-previous:first a').attr('href') != null) {
                   document.location.href = $('span.bw-previous:first a').attr('href');
               }
           }
           if (code == 74) { // 'j'
               var current_top = $(window).scrollTop();
               //               console.log('current top: ' + current_top);
               var window_height = $(window).height();
               //               console.log('window height ' + window_height);
               $('html, body').animate({ 
                       scrollTop: current_top + window_height
               }, 300);
           }
           if (code == 75 ) { // 'k'
               var current_top = $(window).scrollTop();
               //               console.log('current top: ' + current_top);
               var window_height = $(window).height();
               //               console.log('window height ' + window_height);
               var scroll_to = Math.floor(current_top - window_height);
               $('html, body').animate({ 
                       scrollTop: scroll_to
               }, 300);
           }
           });

@@ -931,38 +931,8 @@
 h);%0A
-           console.log(code);%0A
     
@@ -1487,200 +1487,45 @@
     
-//               console.log('current top: ' + current_top);%0A               var window_height = $(window).height();%0A               //               console.log('window height ' + window_height
+var window_height = $(window).height(
 );%0A 
@@ -1776,200 +1776,45 @@
     
-//               console.log('current top: ' + current_top);%0A               var window_height = $(window).height();%0A               //               console.log('window height ' + window_height
+var window_height = $(window).height(
 );%0A 

Remove console logger