Project Euler JS Solutions (SPOILERS)