Convert a unicode character offset to a javascript string index.
The index in unicode characters
The text in which the offset is calculated
The js-native index
Convert a unicode character offset to a javascript string index.