front-end typescript support. #232

This code allow to use TypeScript code on client-side.