Revised the factorial example to move main from ATS to javascript.
Merge pull request #22 from wdblair/master

Revised the factorial example to move main from ATS to javascript.