A naive time series wrapper for JavaScript Arrays