Added draft of calc.js