Fix "remove oldest items" example

The oldest items should be at the beginning of the items array;
therefore, shift() should be used to remove them, as opposed to pop().