Functional JS using optional arguments

A simple, purely functional solution taking advantage of the fact that JS function arguments are all optional.
Merge pull request #120 from danieldickison/master

Functional JavaScript using optional arguments