Project Euler solutions using node.js