Circular is an efficient circular buffer implemention in Javascript.