update calculator with variable environment
updated calculate.js