var factorial = function(n) { if (n