A circular buffer implemented in JavaScript that and tests to prove that you don't even need one