plot.js: simplify