Redis time series statistics with Node.js