A javascript sum for next