Compute Factorial in a Web Page