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().
Merge pull request #1 from hoelzro/master

Documentation fix for "remove oldest items" example