A purely functional prelude for teaching JavaScript (i.e.: not concerned with performance, just simplicity)