Project Euler Solutions in Javascript (NodeJS)