JavaScript library for Spectrino application (http://spectrino.com)

This library is under development, I dont know when I will have time to finish it, but Im willing to collaborate to anybody trying to do so. I suppose it would need between couple of days to one week depending of your JavaScript/Node.js experience. 

Files:

spnProduce.js - is the actual wrapper. All the commands to Spectrino app are text formatted in proper way and the result is text in two parts first part is a description of the second part.
B - boolean; I - integer; D - double; S - string; E  error; M  double matrix

Examples: 
I1 2  - single integer of value 2
D1 2.6  single double (float) of value 2.6
D12 {1.2, 5.6.}  vector of 12 doubles in JSON format
M2:100 {}  double matrix 2 x 100 elements

The functions in spnProduce take the function arguments in order to form a text command and then parse the result to give back a value according to the function. For fully functional library, very similar to that one is in R code (top left) at Clients page of spectrino.com

spnServer.js  is my initial attempt to run Node.js web-socket server so that it will wait asynchronically for the result of the command from Spectrino app (which is web-socket client). 

Again, I would be happy to give you a hand in your attempt to complete the library.
