Inmatarian's solution in Javascript
Merge pull request #98 from inmatarian/master

Inmatarian's solution in Javascript