Identified errors within calculator.js