Update factorial.js