First node.js exercise, part of an interview test.