YP2014 exercise in node.js