Generation of JavaScript and TypeScript definition files.

Generation of JavaScript and TypeScript definition files.
required: @nadavbar