Added another JavaScript solution, but this one keeps no mutable internal state
added additional examples that won't work with stateful solutions
Merge pull request #29 from kylecronin/master

Added another JavaScript solution