A minimal CircularList for Javascript