Diff with Javascript

See http://zunda.freeshell.org/d/20070628.html#p04.