My javascript solution to Project Euler problem 119.