I rewrote the painful JS code for the otherwise excellent least-square fitter page at http://www.akiti.ca/LinLeastSqPoly4.html.
Find it there!
It seems I have enough free time to indulge on writing the most important piece of software of my life: an artistocratic names generator! (French only I'm afraid)
See if you have "blue blood" by generating your own name there!