little fix calc.js