Project Euler Solutions in JavaScript