Project Euler Problems in JavaScript