add comments to calculator.js file