Worked on refractoring if statement for calculator.js