Working my way through Project Euler with JavaScript. My solutions thus far.