Update Math.factorial.js

Adding in the better algorithm for comparison