Javascript solutions to projecteuler.net problems