Hindi Transliterate - Vanilla JS Example

Type Devanagari text below:

Result: