Update collection-of-functions

This example was taken from the "Secrets of the JavaScript Ninja", page 72