JavaScript Project Euler Problems.