support for gnuplot-JS, with writeToTarget() method