Added TypeScript preview window. Fixed #401