Implementation http://jt400.sourceforge.net/ on JavaScript