JavaScript implementation

Hello Emily,

I added a JavaScript implementation. The code compiles and tests pass. I haven't tested it in class nor refactored it myself yet, but intend to do that in next two weeks.

The code requires node.js, npm and mocha. See README.md for installation instructions.

Please let me know if there's something you would like changed.


Antti