Javascript udiff formatter