Update circuitSolver.js