anchor.diff:  </div>
   
   <script src="<aksess:geturl url="/admin/js/jquery-2.0.2.min.js"/>"></script>
  -<script src="<aksess:geturl url="/admin/js/jquery-ui-1.8.14.custom.min.js"/>"></script><script>
  +<script src="<aksess:geturl url="/admin/js/jquery-ui-1.10.3.custom.min.js"/>"></script>
  +<script>
       var debug = function (msg) {
           if (typeof console != 'undefined') {
               console.log(msg);
  
positive.code:             if (!isFetchingLines && isDownScroll && (panel[0].scrollTopMax - 20) <= currentScroll){
                  debug('downward scroll, near bottom - so loading next lines.');
                  isFetchingLines = true;
                  var url = '<aksess:geturl url="/admin/tools/logreader/logfiles/"/>' + filename + '.action?startline=' + (currentLine + numberOfLinesToFetch);
                  debug(url);
                  $.getJSON(url, function(data){
                      isFetchingLines = false;
                      currentLine = data.lineNumber;
                      debug('Results from server: currentLine: ' + currentLine + ' numberOfLinesInFile: ' + data.numberOfLinesInFile + ' numberOfLinesReturned:' + data.numberOfLinesReturned);
  
negative.code:             lastScrollTop = currentScroll;
          });
      };
  
      $('#controlls').submit(function () {
          var selected = $('.ui-tabs-selected').index();
          var panel = $($('.ui-tabs-panel')[selected - 1]);
          numberOfLinesToFetch = parseInt(numberOfLinesInput.val());
          startLine = parseInt(startLineInput.val());
          $.getJSON(getUrlForFile(filesByIndex[selected], startLine, numberOfLinesToFetch), function (data) {
              currentLine = data.lineNumber;
              panel.html(data.lines);
          });
          return false;
      });
  
  </script>
  </body>
  </html>
  