The complete source code, a demo of the local text viewer implementation, and a detailed explanation on handling character encodings (Shift_JIS) are available in the following blog post. [JavaScript] ...