Jordan Wilson Submitting MagicNums.js, duel.js and beer.js

camelCase, please add comments describing the intentions of this function.