Update calc.js
Merge pull request #63 from robobenklein/master

Factor