Javascript parametric plotter