equation plotter in javascript