note, i haven’t tested to see if toFixed etc. are working in Max/MSP
but I assume so.

> the best books to learn and practice javascript (english or french) ?

Don’t know of any myself, but there is SO much info on the web.
(I rarely use print material these days..)
Just make sure you filter out the web-specific stuff, and find
references for the core language. Other than that, all you need to
know is in the Javascript for Max/MSP manual. (You might want to also
read an OpenGL manual if you’re interested in that.)