add factorial section in javascript function blog