sum of natural numbers using recursion in javascript