JavaScript solutions to nodeschool functional programming