create a function that performs a factorial on the given parameter
Merge branch 'master' of https://github.com/quincyreid/JS_Functions