Add original TypeScript version - xhtml-im.ts