title: JQuery load only last n lines of a page
body: <p>I have a div in a webpage where I need to load only the last n-th lines of a textfile.
  For example:</p>
  
  <pre><code>&lt;div id="contentdiv" style="white-space: pre-wrap;"&gt;here comes the output of the logfile&lt;/div&gt;
  &lt;script&gt;
    $(function() {
      $( "#contentdiv" ).load( "logs/logfile.log" );
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>But I only need the last 5 lines of the logfile.</p>