Update solver.js