fixing calc.js