A few useful collections and abstractions in JavaScript.
var list = new Collections.CircularLinkedList(['foo', 'bar', 'baz', 'boo']);
list.nextElement() // foo
list.nextElement() // bar
list.previousElement() // foo
See spec/SpecRunner.html
for tests