JavaScript Recursive function example
Input a number :