Initial rough attempt at JavaScript code generation template.

Copied from MATLAB.xml, then altered. Still very rough and untested.
See tracker item 3607.