A small collection of functions for writing functional JavaScript