Cleaned up Calculator.JS code.