Lines and words javascript diff scripts