Create factorial.js