Add generation of single timeseries to worker.js