Solutions to problems on the site Project Euler in JavaScript