Problem 8: Largest number in a series. Javascript solution.