(Really) simple PHP/Javascript function  to calculate the factorial of a number (int).