title: JavaScript based diff utility
body: <p>I'm looking for a <em>diff</em> equivalent written in JavaScript that only returns/prints relevant lines. I don't want both full text displayed next to each other with the differences highlighted, but just want the actual differences (plus some buffer lines to know where the difference is), similar to the output from the linux diff utility.</p>
  
  <p>Does anybody know a javascript function that does this? All differences should be recognized (even changed whitespace). Thanks.</p>