Adding first JavaScript unit test.
Merge pull request #755 from berryp/first-js-unittest

Adding first JavaScript unit test.