CHG: (javascript): matlab routines to write arrays, doubles, strings, etc... into a javascript format.