final project. created calculator.js to handle inputs and calculations