Some Project Euler problems coded with JavaScript