In-place Romaji to Kana converter for JavaScript