Javascript Factorial Example 2