doc added to calc.js