write plaintext offsets into DOM