Solve find largest cont. sum in JS.