added implementation of problem one using javascript (node.js)
added tests for problem 1 (using Mocha)